#include "cpu/exec/template-start.h"

#define make_jcc_helper(cc) \
    make_helper(concat4(j, cc, _, SUFFIX)) { \
        int len = concat(decode_si_, SUFFIX)(eip + 1); \
        print_asm(str(concat(j,cc)) " %x", eip + 1 + len + op_src->val); \
        if (concat(check_cc_, cc)()) { \
            cpu.eip += op_src->val; \
        } \
        return len + 1; \
    }

make_jcc_helper(e)  
make_jcc_helper(ne)
make_jcc_helper(a)
make_jcc_helper(be)
make_jcc_helper(l)
make_jcc_helper(ge)
make_jcc_helper(le)
make_jcc_helper(g)

#include "cpu/exec/template-end.h"
